<div class="bg-light lter b-b wrapper-md">
	<div class="row">
		<div class="col-sm-6 col-xs-12">
          <h1 class="m-n font-thin h3 text-black">标签管理</h1>
        </div>
	</div>
</div>
<div class="wrapper-md" ng-controller="TagCtrl">
	<div>
	    <a href="#/app/tag/one" class="btn btn-default btn-primary">新增标签</a>

		<div class="pull-right">
	        <div class="form-inline inline" style="width: 120px;">
		    	<div class="input-group">
				   <input ng-model="query.keyword" type="text" class="form-control" placeholder="请输入搜索内容">
		    	</div>
		    </div>
		    <a href="" ng-click="submit()" class="btn btn-primary">查询</a>
	    </div>
    </div>

    <div class="panel panel-default" style="margin-top: 20px;">
	    <table st-table="rowCollectionPage" st-pipe="getItems" class="table table-striped">
	      <thead>
	        <tr>
	          <th>标签ID</th>
	          <th>分类</th>
	          <th>标签内容</th>
	          <th>使用次数</th>
	          <th>来源</th>
	          <th>推荐</th>
	          <th>操作</th>
	        </tr>
	      </thead>
	      <tbody>
	      	<tr ng-show="rowCollectionPage.length == 0">
	      		<td colspan="7" style="padding: 50px; text-align: center;">没有找到相应的内容</td>
	      	</tr>
	        <tr ng-repeat="row in rowCollectionPage">
	          <td>{{row.id}}</td>
	          <td>{{row.type ? '用户标签' : '产品标签/需求标签'}}</td>
	          <td>{{row.tagName}}</td>
	          <td>{{row.useCount}}</td>
	          <td>{{row.source ? '用户' : '平台'}}</td>
	          <td>{{row.order ? row.order : '不推荐'}}</td>
	          <td>
	          	<a href="" ng-click="edit(row)">编辑</a>
  	          	<a href="" ng-click="del(row)">删除</a>
	          </td>
	        </tr>
	      </tbody>
	      <tfoot>
	        <tr>
	          <td colspan="7" class="text-right">
	          	<div class="inline pull-left" style="line-height: 60px">共 {{totalCount}} 条，{{pages}} 页</div>
	            <div st-pagination="" st-items-by-page="20" st-displayed-pages="7" class="no-margin inline"></div>
	          </td>
	        </tr>
	      </tfoot>
	    </table>
	  </div>
</div>
